package com.shijie.domain.vo;

import com.shijie.domain.entity.Users;
import lombok.Data;

/**
 * app用户的基本信息
 *
 */
@Data
public class BaseUserVo implements java.io.Serializable {

    private static final long serialVersionUID = -3297033439383209524L;

    private java.lang.Integer id;
    private java.lang.String nickName;
    private java.lang.String trueName;
    private java.lang.String phoneNo;
    private java.lang.Integer sex;
    private java.lang.String avatar;
    private java.lang.String openId;

    public BaseUserVo() {
    }

    public BaseUserVo(Users user) {
        this.setId(user.getId());
        this.setNickName(user.getNickName());
        this.setTrueName(user.getTrueName());
        this.setPhoneNo(user.getPhoneNo());
        this.setSex(user.getSex());
        this.setAvatar(user.getAvatar());
        this.setOpenId(user.getOpenId());
    }

}
